const http = uni.$u.http;
// 获取用户信息
export const getJson = (params) => http.get('/index/getJson')
// 上传文件/图片
export const upload = (params) => http.post('/common/upload',params);
// 获取全部省市区
export const cityall = (params) => http.get('/index/cityall')
// 获取城市
export const getcity = (params) => http.get('/index/getcity', {params})
// 楼盘列表
export const propertieslist = (params) => http.post('/index/getpropertieslist', params)
// 首页轮播图
export const bannerlist = (params) => http.get('/index/banner', {params})
// 楼盘详情
export const getproperties = (params) => http.post('/index/getproperties', params)
// 地图找房
export const mapRoom = (params) => http.post('/index/getmappropertieslist', params)
// 楼盘收藏
export const followproperties = (params) => http.post('/properties/followproperties', params)
// 同城对比
export const contrast = (params) => http.post('/properties/contrast', params)
// 预约看房
export const yuyuekanfang = (params) => http.post('/leasehouse/yuyuekanfang', params)
// 楼盘推荐
export const propertiestuijian = (params) => http.get('/index/propertiestuijian', params)
// 购房资格
export const getqualifications = (params) => http.get('/house/getqualifications', {params})
// 笋盘推荐
export const splist = (params) => http.get('/index/splist', {params})
//添加对比列表
export const addcontrastproperties = (params) => http.get('/properties/addcontrastproperties', {params})
// 楼盘评论 
export const getcommentlist = (params) => http.post('/index/getcommentlist', params);
//楼盘点赞 
export const zancomment = (params) => http.post('/index/zancomment', params);
//楼盘转发 
export const setzfnum = (params) => http.post('/index/setzfnum', params)
//楼盘浏览记录
export const addcollection = (params) => http.get('/properties/addcollection', {params});
//楼盘浏览记录列表
export const getprocollectionlist = (params) => http.post('/user/getprocollectionlist', params);
// 二手房列表
export const towhouselist = (params) => http.post('/house/towhouselist', params)
// 获取协议合同
export const gettowhousecontractdata = (params) => http.get('/house/gettowhousecontractdata', {params}) 
// 同意合同
export const yescontract = (params) => http.get('/house/yescontract', {params}) 
// 二手房详情
export const gettowhouse = (params) => http.get('/house/gettowhouse', {params})
//二手房房子修改 
export const revisetowhouse = (params, config = {}) => http.post('/house/revisetowhouse', params, config)
// 业务管家
export const getyewuguanjia = (params) => http.get('/house/getyewuguanjia')
// 预约办证
export const yuyuebanzheng = (params) => http.post('/house/yuyuebanzheng',params);
// 添加对比
export const addcontrast = (params) => http.post('/house/addcontrast', params)
// 二手房地图列表
export const maptowhouselist = (params) => http.get('/house/maptowhouselist', {params})
// 预约看房
export const yuyuekanfangs = (params) => http.post('/house/yuyuekanfang',params);
//二手房 上传资料
export const addtowhouse = (params) => http.post('/house/addtowhouse',params);
//二手房 出售状态切换
export const selltab = (params) => http.post('/house/selltab',params);
//二手房 总价修改
export const reviseprice = (params) => http.post('/house/reviseprice',params);
// 授权登录
export const wxminLogin = (params, config = {}) => http.post('/Login/wxminLogin', params, config)
// 获取用户信息
export const userInfo = (params) => http.get('/user/userInfo', {params})
// 授权手机号
export const encryptedphone = (params, config = {}) => http.post('/user/encryptedphone', params, config)
//推荐用户
export const addcustomer = (params) => http.post('/user/addcustomer', params)
//推荐成功客户数量 
export const getcustomernum = (params) => http.post('/user/getcustomernum')
//公司相关配置 
export const getcompanyconfig = (params) => http.post('/index/getcompanyconfig')
// 资讯分类
export const getnewscategory = (params) => http.get('/index/getnewscategory', {params})
// 资讯列表
export const getNews = (params) => http.get('/info/news', {params})
// 资讯详情
export const getNewdetail = (params) => http.get('/info/newdetail', {params})
// 评论列表
export const getNewscomment = (params) => http.get('/info/getnewscommentlist', {params})
// 添加评论
export const getAddnews = (params, config = {}) => http.post('/info/addnewscomment', params, config)
// 点赞资讯
export const getIszan = (params, config = {}) => http.post('/info/zannews', params, config)
// 关注资讯
export const getFollow = (params, config = {}) => http.post('/info/follownews', params, config)
// 粉丝列表
export const getFans = (params, config = {}) => http.post('/user/getfanslist', params, config)
// 客户列表
export const getMycustomer = (params, config = {}) => http.post('/user/mycustomerlist', params, config)
// 楼盘浏览记录
export const getProcollection = (params) => http.get('/user/getprocollectionlist', {params})
// 我的二手房子
export const getHouse = (params) => http.get('/user/myhouselist', {params})
// 我的出租房子
export const getLeasehouse = (params) => http.get('/user/myleasehouselist', {params})
// 获取我的客户数据
export const getKehunum = (params) => http.get('/user/kehunum', {params})
// 购房管家
export const getJialist = (params) => http.get('/user/guanjialist', {params})
// 提现列表
export const getTxmoney = (params) => http.get('/user/txmoneylist', {params})
// 申请提现
export const getWithdr = (params, config = {}) => http.post('/user/txmoney', params, config)
// 我的出租房子详情
export const getLease = (params) => http.get('/user/myleasehousedetails', {params})
// 我的二手房子详情
export const getTow = (params) => http.get('/user/mytowhousedetails', {params})
// 生成二维码
export const getErweima = (params, config = {}) => http.post('/user/shengchengerweima', params, config)
// ID获取用户信息
export const getiduser = (params) => http.get('/user/getiduser', {params})
// 用户实名
export const usershiming = (params, config = {}) => http.post('/user/usershiming', params, config)
// 房产证
export const fangchanzhengshibie = (params, config = {}) => http.post('/house/fangchanzhengshibie', params, config)
//租房列表
export const getHouselist = (params) => http.post('/leasehouse/gethouselist', params)
//获取租房详情
export const getAouse = (params) => http.post('/leasehouse/gethouse', params)
//获取租房合同数据
export const getData = (params) => http.get('/leasehouse/gethousecontractdata', {params})
//获取公寓品牌
export const getApartment = (params) => http.get('/leasehouse/getapartmentbrand', {params})
//提交家私清单并确认已租房下架房子
export const getFurniture = (params, config = {}) => http.post('/leasehouse/furniture', params, config)
// 租房上传资料
export const getAddhouse = (params, config = {}) => http.post('/leasehouse/addhouse', params, config)
// 用户实名数据提交
export const realname = (params, config = {}) => http.post('/user/realname', params, config)
//地图租房列表
export const getMaphouse = (params) => http.get('/leasehouse/getmaphouselist', {params})
// 获取公寓品牌
export const getapartmentbrand = (params, config = {}) => http.post('/leasehouse/getapartmentbrand')
//活动详情
export const toupiao = (params) => http.get('/toupiao/details', {params})
//参赛列表
export const toupiaolist = (params) => http.get('/toupiao/toupiaolist', {params})
// 用户投票
export const toupiaouser = (params, config = {}) => http.post('/toupiao/toupiaouser', params, config)
// 报名活动
export const enroll = (params, config = {}) => http.post('/toupiao/enroll', params, config)
// 活动列表
export const activitylist = (params) => http.get('/toupiao/list');
//二手房收藏
export const sctowhouse = (params, config = {}) => http.post('/house/sctowhouse', params, config)
//获取合同配置
export const getContrac = (params) => http.get('/index/getcontractconfig');
//收藏/取消收藏租房
export const follohouse = (params, config = {}) => http.post('/leasehouse/follohouse', params, config)
//修改租房资料
export const revisehouse = (params, config = {}) => http.post('/leasehouse/revisehouse', params, config)
//租房出售状态切换
export const getSelltab = (params) => http.post('/leasehouse/selltab',params);
//保存融云ID
export const postrongyunid = (params, config = {}) => http.post('/user/postrongyunid', params, config);
//评论
export const addcomment = (params, config = {}) => http.post('/index/addcomment', params, config);
